import Vue from 'vue'
// import axios from 'axios'
export const student = {
  // 学生信息
  stuStatusList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/list', params)
  },
  stuInfoList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/list', params)
  },
  changeTeacherUnCheckList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/listUncheckInfo', params)
  },
  changeTeacherCheckList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/listCheckInfo', params)
  },
  parentGetTime: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/getXsjrxxTime', params)
  },
  parentUpdateTime: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/updateXsjrxxTime', params)
  },
  parentStatusList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/xsjrxx/list', params)
  },
  parentDeleteAll: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/deleteAllXsjrxx', params)
  },
  dormInfoList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/dormList', params)
  },
  hisStuInfoList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/hisList', params)
  },
  stuInfo: params => {
    return Vue.prototype.$get(`/student/info/${params}`)
  },
  studentLeaveList: params => {
    return Vue.prototype.$post('/student/studentLeave/adminQueryAll', params)
  },
  studentLeaveCancel: params => {
    return Vue.prototype.$get(`/student/studentLeave/delete/${params}`) //取消请假申请
  },
  studentLeaveAdd: params => {
    return Vue.prototype.$postJson('/student/studentLeave/add', params) //请假申请
  },
  // 获取补充信息，审核用
  stuXjInfo: params => {
    return Vue.prototype.$get(`/student/bcInfo/${params}`)
  },
  supplementList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/supplementList', params)
  },
  uncheckedList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/uncheckedList', params)
  },
  registerList: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/registerList', params)
  },
  supplementCheck: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/supplementCheck', params)
  },
  xsxxinfo: params => {
    return Vue.prototype.$get(`/schoolRoll/xsxx/info/${params}`)
  },
  supplementBack: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/supplementBack', params)
  },
  stuAdd: params => {
    return Vue.prototype.$postJson('/schoolRoll/xsxx/add', params)
    // return axios({
    //   method: 'post',
    //   url: '/api/schoolRoll/xsxx/add',
    //   data: params
    // })
  },
  stuStatusInfo: xh => {
    return Vue.prototype.$get(`/schoolRoll/xjxx/info/${xh}`)
  },
  // /schoolRoll/xjxx/info/{xh}
  // 教职工信息
  jzgAdd: params => {
    return Vue.prototype.$post('/schoolRoll/jzgxx/add', params) // 添加教职工
  },
  jzgDel: params => {
    return Vue.prototype.$get(`/schoolRoll/jzgxx/delete/${params}`) // 删除教职工
  },
  jzgInfo: params => {
    return Vue.prototype.$get(`/schoolRoll/jzgxx/info/${params}`) // 教职工明细
  },
  jzgList: params => {
    return Vue.prototype.$post('/schoolRoll/jzgxx/list', params) // 教职工列表
  },
  jzgQueryAll: params => {
    return Vue.prototype.$post('/schoolRoll/jzgxx/queryAll', params) // 教职工全部列表
  },
  jzgUpdate: params => {
    return Vue.prototype.$post('/schoolRoll/jzgxx/update', params) // 添加教职工
  },
  // 导师信息
  teacherAdd: params => {
    return Vue.prototype.$post('/schoolRoll/dsxx/add', params) // 添加导师
  },
  teacherDel: params => {
    return Vue.prototype.$get(`/schoolRoll/dsxx/delete/${params}`) // 删除导师
  },
  teacherInfo: params => {
    return Vue.prototype.$get(`/schoolRoll/dsxx/info/${params}`) // 导师明细
  },
  teacherList: params => {
    return Vue.prototype.$post('/schoolRoll/dsxx/list', params) // 导师列表
  },
  teacherQueryAll: params => {
    return Vue.prototype.$post('/teacher/dsxx/queryListByStu', params) // 导师全部列表
  },
  teacherUpdate: params => {
    return Vue.prototype.$post('/schoolRoll/dsxx/update', params) // 添加导师
  },
  addTutor: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/addTutor', params) // 设置导师
  },
  auditChangeTutor: params => {
    return Vue.prototype.$post('/schoolRoll/xsxx/auditChangeTutor', params) // 设置导师
  },
  // 入学成绩
  scoreAdd: params => {
    return Vue.prototype.$post('/schoolRoll/rxcj/add', params)
  },
  rcoreInfo: params => {
    return Vue.prototype.$post(`/schoolRoll/rxcj/info/${params}`)
  },
  scoreUpdate: params => {
    return Vue.prototype.$post('/schoolRoll/rxcj/update', params)
  },
  // 欠费管理
  clearArrearList: params => {
    return Vue.prototype.$post('/schoolRoll/xsjfxx/qfList', params)
  },
  arrearList: params => {
    return Vue.prototype.$post('/schoolRoll/xsjfxx/list', params)
  },
  clearArrears: params => {
    return Vue.prototype.$post('/schoolRoll/xsjfxx/clearArrears', params)
  },
  transferingList: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/transferingList', params)
  },
  transferingItemList: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/transferingItemList', params)
  },
  transferingSave: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/transferingSave', params)
  },
  // 根据学号获取异动信息
  transferingInfo: params => {
    return Vue.prototype.$get(`/schoolRoll/xjxx/transferingInfo/${params}`)
  },
  transferingInfoById: (id, params) => {
    return Vue.prototype.$get(`/schoolRoll/xjxx/transferingInfo/id/${id}`, params)
  },
  transferingDelete: id => {
    return Vue.prototype.$post(`/schoolRoll/xjxx/deleteTransfering/${id}`)
  },
  transferingUncheckList: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/transferingUncheckList', params)
  },
  transferingCheck: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/transferingCheck', params)
  },
  transferingzgUncheckList: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/zgyzTransferingUncheckList', params)
  },
  transferingzgCheck: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/zgyzTransferingCheck', params)
  },
  transferingyzunCheckList: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/yjsyzTransferingUncheckList', params)
  },
  transferingyzCheck: params => {
    return Vue.prototype.$post('/schoolRoll/xjxx/yjsyzTransferingCheck', params)
  },
  tutorByStu: params => {
    return Vue.prototype.$post('/teacher/dsxx/queryListByStu', params)
  },
  tutorByStus: params => {
    return Vue.prototype.$post('/teacher/dsxx/queryListByStus', params)
  },
  // checkInfo: params => {
  //   return Vue.prototype.$get(`/schoolRoll/xsxx/checkInfo/${params}`)
  // },
  // 报道注册
  registerInitialBySingle: params => { // 学生单个初始化
    return Vue.prototype.$post('/schoolRoll/bdzcxx/initial', params)
  },
  registerInitialByBatch: params => { // 学生批量初始化
    return Vue.prototype.$post('/schoolRoll/bdzcxx/initialBatch', params)
  },
  registerbdList: params => { // 注册分页列表查询
    return Vue.prototype.$post('/schoolRoll/bdzcxx/list', params)
  },
  registerwbdList: params => { // 分页查询未报到列表
    return Vue.prototype.$post('/schoolRoll/bdzcxx/wbdList', params)
  },
  registerCheckOne: params => { // 学生单个报道
    return Vue.prototype.$post('/schoolRoll/bdzcxx/checkIn', params)
  },
  registerCheck: params => { // 学生批量报道
    return Vue.prototype.$post('/schoolRoll/bdzcxx/checkInBatch', params)
  },
  registerCheckBack: params => { // 学生报道退回
    return Vue.prototype.$post('/schoolRoll/bdzcxx/checkInBack', params)
  },
  delayCheckIn: params => { // 延期报道
    return Vue.prototype.$post('/schoolRoll/bdzcxx/delayCheckIn', params)
  },
  checkInTotal: params => { // 报道信息汇总
    return Vue.prototype.$post('/schoolRoll/bdzcxx/checkInTotal', params)
  },
  checkInRegisterTotal: params => { // 综合信息汇总
    return Vue.prototype.$post('/schoolRoll/bdzcxx/checkInRegisterTotal', params)
  },
  registerTotal: params => { // 注册信息汇总
    return Vue.prototype.$post('/schoolRoll/bdzcxx/registerTotal', params)
  },
  // 学生信息查看
  studentInfo: params => { // 学生端学生信息
    return Vue.prototype.$get(`/student/info/${params}`)
  },
  studentResume: params => { // 学生端学生信息
    return Vue.prototype.$get(`/student/getResumes/${params}`)
  },
  studentFamily: params => { // 学生端学生信息
    return Vue.prototype.$get(`/student/getFamillys/${params}`)
  },
  studentBcResume: params => { // 学生端学生信息
    return Vue.prototype.$get(`/student/getBcResumes/${params}`)
  },
  studentBcFamily: params => { // 学生端学生信息
    return Vue.prototype.$get(`/student/getBcFamillys/${params}`)
  },
  studentStatis: () => { // 学生端学生信息
    return Vue.prototype.$post(`/schoolRoll/index/studentStatistics`)
  },
  studentUpdate: params => { // 学生信息更新
    return Vue.prototype.$postJson(`/schoolRoll/xsxx/update`, params)
  },
  updateSupplementDate: params => { // 学生信息更新
    return Vue.prototype.$post(`/schoolRoll/xjxx/updateSupplementDate`, params)
  },
  yxWsList: params => { // 院系获取学生住宿申请待审核列表
    return Vue.prototype.$post(`/schoolRoll/xszssqxx/yxUncheckList`, params)
  },
  ygbWsList: params => { // 研工办获取学生住宿申请待审核列表
    return Vue.prototype.$post(`/schoolRoll/xszssqxx/ygbUncheckList`, params)
  },
  wsCheck: params => { // 学生住宿审核
    return Vue.prototype.$post(`/schoolRoll/xszssqxx/check`, params)
  },
  yxShyjsList: params => { // 院系获取学生住宿申请待审核列表
    return Vue.prototype.$post(`/schoolRoll/shyjs/yxUncheckList`, params)
  },
  ygbShyjsList: params => { // 研工办获取学生住宿申请待审核列表
    return Vue.prototype.$post(`/schoolRoll/shyjs/ygbUncheckList`, params)
  },
  shyjsCheck: params => { // 学生住宿审核
    return Vue.prototype.$post(`/schoolRoll/shyjs/check`, params)
  },
  getShyjsBaseInfo: id => {
    return Vue.prototype.$get(`/schoolRoll/shyjs/getShyjsBaseInfo?id=` + (id ? id : '')) // 获取三好研究生
  },
  resetPasswdByStu: xh => { // 重置学生密码
    return Vue.prototype.$post(`/student/resetPasswd/${xh}`)
  },
  resetPasswdByTea: params => { // 重置教职工密码
    return Vue.prototype.$postJson(`/teacherClient/resetPasswd/`, params)
  },
  updateZzmm: params => { // 修改政治面貌
    return Vue.prototype.$post(`/schoolRoll/xsxx/updateZzmm`, params)
  },
  archive: () => { // 归档
    return Vue.prototype.$post(`/schoolRoll/xsxx/archive`)
  },
  xwlxStatis: params => {
    return Vue.prototype.$post(`/schoolRoll/xjxx/xwlxtj`, params)
  },
  xxxsStatis: params => {
    return Vue.prototype.$post(`/schoolRoll/xjxx/xxxstj`, params)
  },
  tmybmzymlList: params => {//推免预报名信息
    return Vue.prototype.$post(`/schoolRoll/tmybmzyml/list`, params)
  },
  tmybmxxList: params => {//推免预报名信息
    return Vue.prototype.$post(`/schoolRoll/tmybmxx/list`, params)
  },
  tmybmzymlSetTime: params => { // 推免预报名时间设置
    return Vue.prototype.$post(`/schoolRoll/tmybmzyml/setTime`, params)
  },
  ntsSaveYear: params => { // 推免预报名时间设置
    return Vue.prototype.$post(`/admissions/tms/zsnd/set`, params)
  },
  ntsGetYear: params => { // 推免预报名时间设置
    return Vue.prototype.$post(`/admissions/tms/zsnd/get`, params)
  },
  tmybmxxFeedback: params => { // 推免预报名反馈
    return Vue.prototype.$post(`/schoolRoll/tmybmxx/feedback`, params)
  },
  //贷款管理
  studentLoanAdd: params => {
    return Vue.prototype.$postJson('/admissions/dksq/add', params) //贷款申请
  },
  studentloanList: params => {
    return Vue.prototype.$post('/admissions/dksq/list', params)
  },
  studentloanAut: params => {
    return Vue.prototype.$post('/admissions/dksq/aut',params)
  },
  studentloanSummaryList: params => {
    return Vue.prototype.$post('/admissions/dksq/summary/list', params)
  },
  studentloanXzList: params => {
    return Vue.prototype.$get('/admissions/dkxz/info')
  },
  studentloanXzSave: params => {
    return Vue.prototype.$postJson('/admissions/dkxz/add', params)
  },
   //贷奖管理
   setupList :params => {
    return Vue.prototype.$post('/admissions/jxjsdxx/list', params)
  },
  setupAdd: params => {
    return Vue.prototype.$postJson('/admissions/jxjsdxx/add', params) //贷款申请
  },
  setupId: params => {
    return Vue.prototype.$get(`/admissions/jxjsdxx/info/${params}`)
  },
  setupUpdate: params => {
    return Vue.prototype.$postJson('/admissions/jxjsdxx/update', params) //贷款申请
  },
  setupDel: params => {
    return Vue.prototype.$get(`/admissions/jxjsdxx/delete/${params}`)
  },
  //学生奖学金管理
  scholarshipList: params => {
    return Vue.prototype.$post('/admissions/xsjxjxx/list', params)
  },
  scholarshipAdd: params => {
    return Vue.prototype.$postJson('/admissions/xsjxjxx/add', params) //贷款申请
  },
  scholarshipBase: params => {
    return Vue.prototype.$get(`/admissions/xsjxjxx/infoXh/${params}`)
  },
  scholAdd: params => {
    return Vue.prototype.$postJson('/admissions/xsjxjxx/add', params) //请假申请
  },
  scholarshipId: params =>{
    return Vue.prototype.$get(`/admissions/xsjxjxx/info/${params}`)
  },
  scholarshipUpdate: params => {
    return Vue.prototype.$postJson('/admissions/xsjxjxx/update', params) //请假申请
  },
  scholarshipDel: params => {
    return Vue.prototype.$get(`/admissions/xsjxjxx/delete/${params}`)
  },
  //项目申报
  projectList: params => {
    return Vue.prototype.$post('/admissions/gjhxmsb/gjhxmsb/list/yx',params)
  },
  departSh: params => {
    return Vue.prototype.$postJson('/admissions/gjhxmsb/gjhxmsb/updateYxSH', params)
  },
  graduateSh: params =>{
    return Vue.prototype.$postJson('/admissions/gjhxmsb/gjhxmsb/updateZhSH', params)
  },
  graduateth: params =>{
    return Vue.prototype.$postJson('/admissions/gjhxmsb/gjhxmsb/th', params)
  },
  projectZhbList: params =>{
    return Vue.prototype.$post('/admissions/gjhxmsb/gjhxmsb/list/zhb',params)
  },
  projectId :id =>{
    return Vue.prototype.$get(`/admissions/gjhxmsb/gjhxmsb/info/${id}`)
  },
  //回校报到
  reportList: params =>{
    return Vue.prototype.$post('/admissions/gjhxbd/list',params)
  },
  reportBasic: params =>{
    return Vue.prototype.$post('/admissions/gjhxmsb/gjhxmsb/basic',params)
  },
  reportDetile :id =>{
    return Vue.prototype.$get(`/admissions/gjhxbd/info/${id}`)
  },
  reportUpdate: params =>{
    return Vue.prototype.$postJson('/admissions/gjhxbd/update',params)
  },

  //时间设置
  timeSet:params =>{
    return Vue.prototype.$post('/admissions/gjhxmsb/gjhxmsb/updateTime',params)
  },
  //院系国际学校
  pushYxSchoolList:params =>{
    return Vue.prototype.$post('/admissions/gjhgjs/xsxx/list',params)
  },
  yxSchoolList:params =>{
    return Vue.prototype.$post('/admissions/gjhgjs/list',params)
  },
  yxSchoolPush:params =>{
    return Vue.prototype.$postJson('/admissions/gjhgjs/submit',params)
  },
  yxSchoolSh:params =>{
    return Vue.prototype.$postJson('/admissions/gjhgjs/batchCheck',params)
  },
  yxSchoolSubmitDate:params =>{
    return Vue.prototype.$get('/admissions/gjhgjs/submitDate')
  },
  //自定义查询
  zdySearchBasic:params =>{
    return Vue.prototype.$postJson('/admissions/gjhxmsb/gjhxmsb/list/basic',params)
  },
  zdySearch:params =>{
    return Vue.prototype.$post('/admissions/gjhxmsb/gjhxmsb/list/exportExcelSelf',params)
  },
  //出发信息上报
  gjhxmsbList: params =>{
    return Vue.prototype.$post('/admissions/GjhCfsb/list',params)
  },
  gjhxmsbAdd: params =>{
    return Vue.prototype.$postJson('/admissions/GjhCfsb/save',params)
  },
  //评教管理
  comTeachTime: params =>{
    return Vue.prototype.$post('/kcpjzb/config',params)
  },
  stuComTeachList: params =>{
    return Vue.prototype.$post('/kcpjzb/xsQuery/list',params)
  },
  stuComTeachDetail: id =>{
    return Vue.prototype.$get(`/kcpjzb/xsQuery/info/${id}`)
  },
  stuComTeachAdlist: params =>{
    return Vue.prototype.$post('/kcpjzb/xsManage/list',params)
  },
  stuComTeachDetailAd: pkxxId =>{
    return Vue.prototype.$get(`/kcpjzb/xsManage/info/${pkxxId}`)
  },
  stuComTeachAdvise: pkxxId =>{
    return Vue.prototype.$post('/kcpjzb/xsManage/pjnlList?pkxxId=' + pkxxId)
  },
  ddComTeachList: params =>{
    return Vue.prototype.$post('/kcpjzb/dd/list',params)
  },
  ddComTeachDetail: params =>{
    return Vue.prototype.$get('/kcpjzb/dd',params)
  },
  onComTeachDf: params =>{
    return Vue.prototype.$postJson('/kcpjzb/dd/add',params)
  },
  onComTeachDetailDf: id =>{
    return Vue.prototype.$get(`/kcpjzb/dd/info/${id}`)
  },
  ddComTeachSearchList: params =>{
    return Vue.prototype.$post('/kcpjzb/ddQuery/list',params)
  },
  ddComTeachSearchDetail: id =>{
    return Vue.prototype.$get(`/kcpjzb/ddQuery/info/${id}`)
  },
  ddComTeachAdlist: params =>{
    return Vue.prototype.$post('/kcpjzb/ddManage/list',params)
  },
  ddComTeachDetailAd: pkxxId =>{
    return Vue.prototype.$get(`/kcpjzb/ddManage/info/${pkxxId}`)
  },
  ddComTeachAdvise: pkxxId =>{
    return Vue.prototype.$post('/kcpjzb/ddManage/pjnlList?pkxxId=' + pkxxId)
  },
  ddComTeachExport: pkxxId =>{
    return Vue.prototype.$post('/kcpjzb/ddManage/exportPjnl?pkxxId=' + pkxxId)
  },
  ddReviewIsyxpj:() =>{
    return Vue.prototype.$get('/kcpjzb/dd/yxpj')
  },
}
